package cn.xzhang.boot.model.vo.carousel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 轮播图VO
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(description = "轮播图VO")
public class CarouselVo implements Serializable {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "跳转链接地址")
    private String url;

    @Schema(description = "排序字段",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;

    @Schema(description = "缩略图地址",requiredMode = Schema.RequiredMode.REQUIRED)
    private String picUrl;

    @Schema(description = "跳转方式，默认：self，外站：miniProgram",requiredMode = Schema.RequiredMode.REQUIRED)
    private String target;

    @Schema(description = "外部小程序的app-id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String appId;

}
